package com.ay.selfservicemachine.base;


public abstract class BaseView<W,B> {

    public W window;
    public B root;
    protected BaseView(W window, B root){
        this.window=window;
        this.root=root;
        initView();
        initData();
    }



    public void onPause() {
    }
    public void onRestart() {
    }
    public void onResume() {
    }
    public void onDestroy() {
    }

    public void onCreate(){

    }
    protected abstract void initView();
    protected abstract void initData();


}
